<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So, you are manually running your tests, for example, the &#8216;test_julian.exe&#8217; or &#8216;testcpp.exe&#8217;?&nbsp; Running them from a command prompt gives you that same error about the application has failed to start?&nbsp; And the name of the dll&#8217;s exactly match?&nbsp; And you have tried copying the .dll into the same directory and running it manually?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You can use Dependency Walker to run a program and debug the issues it has with DLL.&nbsp; Some versions of Visual Studio come with a version of it. You can run depends.exe from a visual studio command prompt and pass it the executable. &nbsp;If you don&#8217;t have it, you can get it from </span><a href="http://www.dependencywalker.com/">http://www.dependencywalker.com/</a>.&nbsp; <span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You can profile and executable by hitting F7 (I usually checkmark all the options to on) and it will tell you all about what it is doing to bootstrap you exe, including where it fails.&nbsp; Usually, this will give you a better idea of what happened, where it looked for the DLL, and why it rejected ones that seemed like they should have worked.&nbsp; In particular, it might be finding that DLL fine, but the DLL is returning 0 from DllMain() and failing to be loaded.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hope that helps!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#666666'>Aaron C. Meadows</span></b><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#666666'> </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> cmake-bounces@cmake.org [mailto:cmake-bounces@cmake.org] <b>On Behalf Of </b>Stephen Torri<br><b>Sent:</b> Thursday, June 23, 2011 1:19 PM<br><b>To:</b> cmake@cmake.org<br><b>Subject:</b> [CMake] Fwd: Problem finding DLLS to use with tests<o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><div><p class=MsoNormal>On Thu, Jun 23, 2011 at 11:37 AM, &lt;<a href="mailto:aaron.meadows@thomsonreuters.com" target="_blank">aaron.meadows@thomsonreuters.com</a>&gt; wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;color:#1F497D'>Can you post your CMakeLists.txt?&nbsp; Did you get different errors for each of the 3 solutions you tried, or were they all the same error?&nbsp; What was the exception code?</span><o:p></o:p></p></div></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div></div><div><p class=MsoNormal>I got the same error. I did not receive a exception throw when I ran the testing code via Visual Studio. I got&nbsp;a message that said:<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>&quot;The application has failed to start because boost_unit_test_framework-vc100-mt-gd-1_46_1.dll was not found. Reinstalling the application may fix the problem&quot;.<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>It looks like I either need to copy the boost dlls I use to my test directory or somehow add the boost directory to the PATH environment variable.<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>---------- Master CMakeLists.txt ------------<o:p></o:p></p></div><div><p class=MsoNormal>cmake_minimum_required ( VERSION 2.8 )<o:p></o:p></p></div><div><p class=MsoNormal>SET(CMAKE_MODULE_PATH &quot;${CMAKE_SOURCE_DIR}/cmake_modules/&quot;)<o:p></o:p></p></div><div><p class=MsoNormal>PROJECT(myproject)<o:p></o:p></p></div><div><p class=MsoNormal>SET ( ${PROJECT_NAME}_MAJOR_VERSION 0 )<br>SET ( ${PROJECT_NAME}_MINOR_VERSION 5 )<br>SET ( ${PROJECT_NAME}_PATCH_LEVEL 0 )<o:p></o:p></p></div><div><p class=MsoNormal>SET(BOOST_ROOT &quot;C:/Program Files (x86)/boost/boost_1_46_1&quot; CACHE PATH &quot;Installation directory for boost&quot;)<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEBUG<br>#-----------------------------------------------------<br>OPTION(DEBUG_TLE_PARSER &quot;Enable debugging of TLE parser.&quot; OFF)<br>IF(DEBUG_TLE_PARSER)<br>&nbsp; SET (DEBUG_PARSER 1)<br>ENDIF(DEBUG_TLE_PARSER)<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unix Configuration<br>#-----------------------------------------------------<br>IF(UNIX) <br>&nbsp;<br>&nbsp; SET(INSTALL_BIN_DIR bin CACHE PATH &quot;Installation directory for executables&quot;)<br>&nbsp; SET(INSTALL_LIB_DIR lib CACHE PATH &quot;Installation directory for libraries&quot;)<br>&nbsp; SET(INSTALL_INC_DIR include CACHE PATH &quot;Installation directory for headers&quot;)<br>&nbsp; SET(INSTALL_DATA_DIR shared/${PROJECT_NAME} CACHE PATH &quot;Installation directory for data files&quot;)<br>&nbsp; <br>&nbsp; #-----------------------------------------------------<br>&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FLAGS<br>&nbsp; #----------------------------------------------------<br>&nbsp; IF(CMAKE_BUILD_TYPE MATCHES Release)<br>&nbsp;&nbsp;&nbsp; SET(CMAKE_CXX_FLAGS &quot;${CMAKE_CXX_FLAGS} -O3 -Wall -Werror -ansi -pedantic&quot;)<br>&nbsp; ENDIF(CMAKE_BUILD_TYPE MATCHES Release)<br>&nbsp; IF(CMAKE_BUILD_TYPE MATCHES Debug)<br>&nbsp;&nbsp;&nbsp; SET(CMAKE_CXX_FLAGS_DEBUG &quot;${CMAKE_CXX_FLAGS_DEBUG} -O0 -Wall -Werror -ansi -pedantic&quot;)<br>&nbsp; ENDIF(CMAKE_BUILD_TYPE MATCHES Debug)<br>&nbsp; <br>&nbsp; OPTION(BUILD_SHARED_LIBS &quot;Build shared libraries.&quot; ON)<br>&nbsp; <br>&nbsp; IF(DEBUG_TLE_PARSER)<br>&nbsp;&nbsp;&nbsp; SET(CMAKE_CXX_FLAGS_DEBUG &quot;${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG_PARSER&quot;)<br>&nbsp; ENDIF(DEBUG_TLE_PARSER)<o:p></o:p></p></div><div><p class=MsoNormal>ENDIF(UNIX)<o:p></o:p></p></div><div><p class=MsoNormal>set(myproject_SRC_DIR ${CMAKE_SOURCE_DIR}/myproject)<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHARED / STATIC<br>#-----------------------------------------------------<o:p></o:p></p></div><div><p class=MsoNormal># Allow the developer to select if Dynamic or Static libraries are built<br>OPTION(BUILD_SHARED_LIBS &quot;Build shared libraries.&quot; OFF)<o:p></o:p></p></div><div><p class=MsoNormal># Set the LIB_TYPE variable to STATIC<br>SET (LIB_TYPE STATIC)<br>IF (BUILD_SHARED_LIBS)<br>&nbsp; # User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED'<br>&nbsp; SET (LIB_TYPE SHARED)<br>&nbsp; IF(WIN32)<br>&nbsp;&nbsp;&nbsp; SET (BUILD_SHARED_WIN32 1)<br>&nbsp; ENDIF(WIN32)<br>ENDIF (BUILD_SHARED_LIBS)<o:p></o:p></p></div><div><p class=MsoNormal>CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/myproject/<a href="http://config.h.in/" target="_blank">config.h.in</a> ${CMAKE_CURRENT_SOURCE_DIR}/myproject/config.h)<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TESTING<br>#-----------------------------------------------------<o:p></o:p></p></div><div><p class=MsoNormal>ENABLE_TESTING()<o:p></o:p></p></div><div><p class=MsoNormal>add_custom_target ( check COMMAND ${CMAKE_CTEST_COMMAND} )<o:p></o:p></p></div><div><p class=MsoNormal>SUBDIRS(Testing/units)<br>SUBDIRS(Testing/myproject)<o:p></o:p></p></div><div><p class=MsoNormal><br>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FIND PACKAGES<br>#-----------------------------------------------------<br>IF(WIN32)<br>&nbsp;&nbsp; SET(Boost_USE_STATIC_LIBS ON)<br>&nbsp;&nbsp; SET(Boost_USE_MULTITHREADED ON)<br>ENDIF(WIN32)<o:p></o:p></p></div><div><p class=MsoNormal>SET(Boost_ADDITIONAL_VERSIONS &quot;1.46&quot; &quot;1.44&quot; &quot;1.44.0&quot; )<br>FIND_PACKAGE(Boost REQUIRED COMPONENTS program_options thread unit_test_framework filesystem system)<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPACK<br>#-----------------------------------------------------<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------<br>#&nbsp;&nbsp; CPACK DESCRIPTION INFORMATION<br>#-----------------------------<o:p></o:p></p></div><div><p class=MsoNormal>IF(CMAKE_BUILD_TYPE MATCHES Release)<br>SET(CPACK_PACKAGE_NAME &quot;myproject&quot;)<br>SET(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;myproject&quot;)<br>ENDIF(CMAKE_BUILD_TYPE MATCHES Release)<o:p></o:p></p></div><div><p class=MsoNormal>IF(CMAKE_BUILD_TYPE MATCHES Debug)<br>SET(CPACK_PACKAGE_NAME &quot;myproject_debug&quot;)<br>SET(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;myproject debug&quot;)<br>ENDIF(CMAKE_BUILD_TYPE MATCHES Debug)<o:p></o:p></p></div><div><p class=MsoNormal><br>SET(CPACK_PACKAGE_VENDOR &quot;Self&quot;)<br>SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY &quot;myproject is an implementation of the myproject satellite model for use in the DTCS project&quot;)<br>SET(CPACK_PACKAGE_DESCRIPTION_FILE &quot;${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt&quot;)<br>SET(CPACK_RESOURCE_FILE_LICENSE &quot;${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt&quot;)<br>SET(CPACK_PACKAGE_VERSION_MAJOR ${myproject_MAJOR_VERSION})<br>SET(CPACK_PACKAGE_VERSION_MINOR ${myproject_MINOR_VERSION})<br>SET(CPACK_PACKAGE_VERSION_PATCH ${myproject_PATCH_LEVEL})<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DOCUMENTATION<br>#-----------------------------------------------------<br>find_package ( Doxygen )<br>IF(DOXYGEN)<br>&nbsp;&nbsp; ADD_SUBDIRECTORY(documentation)<br>ELSE(DOXYGEN)<br>&nbsp;&nbsp; MESSAGE(STATUS &quot;WARNING: Doxygen not found - API documentation not created&quot;)<br>ENDIF(DOXYGEN)<o:p></o:p></p></div><div><p class=MsoNormal>SET ( INSTALLED_HEADERS<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/constants.hpp<br>&nbsp; myproject/dll_defines.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/exception.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/file_error.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/interface.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/missing_file_error.hpp<br>&nbsp; myproject/exception.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/parsing_error.hpp )<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>SET ( INSTALLED_UNIT_HEADERS<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/units/coordinates.hpp<br>&nbsp; myproject/units/day.hpp<br>&nbsp; myproject/units/invalid_day_exception.hpp<br>&nbsp; myproject/units/invalid_hour_exception.hpp<br>&nbsp; myproject/units/invalid_month_exception.hpp<br>&nbsp; myproject/units/invalid_year_exception.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/units/julian.hpp<br>&nbsp; myproject/units/minute.hpp<br>&nbsp; myproject/units/month.hpp<br>&nbsp; myproject/units/second.hpp<br>&nbsp; myproject/units/time.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/units/value_array.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/units/vector.hpp<br>&nbsp; myproject/units/year.hpp )<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>SET ( HEADERS <br>&nbsp; ${INSTALLED_HEADERS}<br>&nbsp; ${INSTALLED_UNIT_HEADERS}<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/interface_impl.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/model_map.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/model_map.inl<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/satellite_model.hpp<br>&nbsp; myproject/parsers/bstar_compose.hpp<br>&nbsp; myproject/parsers/degree_to_radians_convert.hpp<br>&nbsp; myproject/parsers/derivative_compose.hpp<br>&nbsp; myproject/parsers/eccentricity_compose.hpp<br>&nbsp; myproject/parsers/error_handler.hpp<br>&nbsp; myproject/parsers/mean_motion_compose.hpp<br>&nbsp; myproject/parsers/myproject_entry_compose.hpp<br>&nbsp; myproject/parsers/tle_parser.hpp<br>&nbsp; myproject/parsers/ureal11_policy.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/model/near_earth_orbit.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/model/near_earth_orbit.inl<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/model/myproject.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/model/myproject.inl<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/model/myproject_orbit_data.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/model/myproject_orbit_data.inl<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/units/tle.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/gravitational_constant_t.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/old_wsg72_constant_type.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/no_constants_type.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/j2_constant_type.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/j2j3_constant_type.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/wsg72_constant_type.hpp<br>&nbsp;&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/wsg84_constant_type.hpp )<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>SET ( SOURCE<br>&nbsp;&nbsp;&nbsp; myproject/interface.cpp<br>&nbsp;&nbsp;&nbsp; myproject/model/near_earth_orbit.cpp<br>&nbsp;&nbsp;&nbsp; myproject/model/myproject.cpp<br>&nbsp;&nbsp;&nbsp; myproject/model/myproject_orbit_data.cpp<br>&nbsp;myproject/units/day.cpp<br>&nbsp;myproject/units/hour.cpp<br>&nbsp;&nbsp;&nbsp; myproject/units/julian.cpp<br>&nbsp;myproject/units/minute.cpp<br>&nbsp;myproject/units/month.cpp<br>&nbsp;myproject/units/second.cpp<br>&nbsp;&nbsp;&nbsp; myproject/units/tle.cpp<br>&nbsp;myproject/units/value_array.cpp<br>&nbsp;myproject/units/vector.cpp<br>&nbsp;myproject/units/year.cpp<br>&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/old_wsg72_constant_type.cpp<br>&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/no_constants_type.cpp<br>&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/J2_constant_type.cpp<br>&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/J2J3_constant_type.cpp<br>&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/wsg72_constant_type.cpp<br>&nbsp;&nbsp;&nbsp; myproject/world_geodetic_system/wsg84_constant_type.cpp )<o:p></o:p></p></div><div><p class=MsoNormal>#SET ( CSHARP_SOURCE<br>#&nbsp; csharp/myproject_wrap.cxx )<br>#<br>#FILE ( GLOB CSHARP_FILES &quot;csharp/*.cs&quot; )<br>&nbsp;<br>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LINKING<br>#-----------------------------------------------------<o:p></o:p></p></div><div><p class=MsoNormal>include_directories(${Boost_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${myproject_SRC_DIR}) <o:p></o:p></p></div><div><p class=MsoNormal>LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})<o:p></o:p></p></div><div><p class=MsoNormal>add_library ( myproject ${LIB_TYPE} ${SOURCE} ${HEADERS} )<o:p></o:p></p></div><div><p class=MsoNormal>IF(UNIX)<br>target_link_libraries ( myproject stdc++ )<br>ENDIF(UNIX)<o:p></o:p></p></div><div><p class=MsoNormal>#add_library ( myproject_csharp ${CSHARP_SOURCE} )<o:p></o:p></p></div><div><p class=MsoNormal>add_executable(testcpp myproject/testcpp.cpp )<br>add_executable(validate myproject/validate.cpp )<o:p></o:p></p></div><div><p class=MsoNormal><br>IF(UNIX)<br>target_link_libraries (validate ${Boost_LIBRARIES} myproject pthread )<br>target_link_libraries (testcpp ${Boost_LIBRARIES} myproject pthread )<br>ELSE(WIN32)<br>target_link_libraries (validate ${Boost_LIBRARIES} myproject )<br>target_link_libraries (testcpp ${Boost_LIBRARIES} myproject )<br>ENDIF(UNIX)<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------------------------------<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INSTALL<br>#-----------------------------------------------------<br>INSTALL(TARGETS myproject DESTINATION lib COMPONENT libraries)<br>INSTALL(FILES ${INSTALLED_HEADERS} DESTINATION include/${PROJECT_NAME} COMPONENT devel)<br>INSTALL(FILES ${INSTALLED_UNIT_HEADERS} DESTINATION include/${PROJECT_NAME}/units COMPONENT devel)<br>#INSTALL(TARGETS myproject_csharp DESTINATION lib COMPONENT csharp)<br>#INSTALL(FILES ${CSHARP_FILES} DESTINATION include/${PROJECT_NAME}/csharp COMPONENT csharp)<br>&nbsp; <br>IF(UNIX)<br>&nbsp; INSTALL(FILES Findmyproject.cmake DESTINATION share/module)<br>ENDIF(UNIX)<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------<br>#&nbsp; INSTALLATION INFORMATION<br>#-----------------------------<br>#SET(CPACK_COMPONENTS_ALL libraries devel docs csharp)<br>SET(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME &quot;Libraries&quot;)<br>SET(CPACK_COMPONENT_LIBRARIES_DESCRIPTION &quot;Dynamic library used to build programs with myproject Interface&quot;)<br>SET(CPACK_COMPONENT_DEVEL_DISPLAY_NAME &quot;C++ Headers&quot;)<br>SET(CPACK_COMPONENT_DEVEL_DESCRIPTION &quot;C++ header files for use with myproject Interface&quot;)<br>SET(CPACK_COMPONENT_DEVEL_DEPENDS libraries)<br>SET(CPACK_COMPONENT_DOCS_DISPLAY_NAME &quot;C++ API Documentation&quot;)<br>SET(CPACK_COMPONENT_DOCS_DESCRIPTION &quot;C++ API HTML files describing the API for myproject Interface&quot;)<br>#SET(CPACK_COMPONENT_CSHARP_DISPLAY_NAME &quot;C# API files&quot;)<br>#SET(CPACK_COMPONENT_CSHARP_DESCRIPTION &quot;C# API files describing the API for myproject Interface&quot;)<br>SET(CPACK_COMPONENT_LIBRARIES_GROUP &quot;Runtime&quot;)<br>SET(CPACK_COMPONENT_DEVEL_GROUP &quot;Development&quot;)<br>SET(CPACK_COMPONENT_DOCS_GROUP &quot;Development&quot;)<br>#SET(CPACK_COMPONENT_CSHARP_GROUP &quot;Development&quot;)<br>SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION &quot;All of the tools necessary to develop against the SMT Interface&quot;)<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>#-----------------------------<br>#&nbsp; INSTALLATION TYPES<br>#-----------------------------<br>SET(CPACK_ALL_INSTALL_TYPES Full Runtime Developer)<br>SET(CPACK_COMPONENT_LIBRARIES_INSTALL_TYPES Full Developer Runtime)<br>SET(CPACK_COMPONENT_DEVEL_INSTALL_TYPES Full Developer)<br>SET(CPACK_COMPONENT_DOCS_INSTALL_TYPES Full Developer)<br>#SET(CPACK_COMPONENT_CSHARP_INSTALL_TYPES Full Developer)<o:p></o:p></p></div><div><p class=MsoNormal>IF (WIN32)<br>&nbsp; SET(CPACK_PACKAGE_ICON &quot;${CMAKE_CURRENT_SOURCE_DIR}\\\\InstallIcon.bmp&quot;)<br>&nbsp; SET(CPACK_NSIS_MODIFY_PATH ON)<br>&nbsp; SET(CPACK_GENERATOR &quot;NSIS&quot;)<br>ELSE (UNIX)<br>&nbsp; SET(CPACK_GENERATOR &quot;RPM&quot;)<br>ENDIF(WIN32)<o:p></o:p></p></div><div><p class=MsoNormal># Always include this last.<br>INCLUDE(CPack)<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>--------- test CMakeLists.txt -------------<o:p></o:p></p></div><div><p class=MsoNormal>add_executable ( test_julian EXCLUDE_FROM_ALL test_julian.cpp )<br>add_test ( test_julian test_julian )<br>add_dependencies ( check test_julian )<br>target_link_libraries ( test_julian ${Boost_LIBRARIES} myproject )<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>add_executable ( test_valuearray EXCLUDE_FROM_ALL test_valuearray.cpp )<br>add_test ( test_valuearray test_valuearray )<br>add_dependencies ( check test_valuearray )<br>target_link_libraries ( test_valuearray ${Boost_LIBRARIES} myproject )<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>add_executable ( test_vector EXCLUDE_FROM_ALL test_vector.cpp )<br>add_test ( test_vector test_vector )<br>add_dependencies ( check test_vector )<br>target_link_libraries ( test_vector ${Boost_LIBRARIES} myproject )<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>