[CMake] understanding build output

Mike Jackson mike.jackson at imts.us
Mon Aug 4 09:55:50 EDT 2008


I can try a couple of the questions:

For ctest you should have something like the following in your  
CMakeLists.txt file (or a file included by CMakeLists.txt:

# Add a variable that the user can set to enable/disable testing
OPTION(BUILD_TESTING "Build CTest Testing" ON)
IF(BUILD_TESTING)
   ENABLE_TESTING()
ENDIF(BUILD_TESTING)

IF (BUILD_TESTING)
     ADD_EXECUTABLE(MyTest MyTest.cpp)
     TARGET_LINK_LIBRARIES( MyTest ${Dependent_Libraries})
     ADD_TEST(MyTest ${EXECUTABLE_OUTPUT_PATH}/MyTest)
ENDIF (BUILD_TESTING)


Now you can do "make test" from a command line or run the appropriate  
target from within
a visual studio solution.

Hope that helps
-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Aug 3, 2008, at 10:36 PM, Michael Masters wrote:

> I'm trying to figure out the current cmake build in order to get 'make
> install' and 'make package' working. I'm still a newbie, although I
> have read through some of the tutorials. I was wondering if the output
> from this make could help me with getting cpack to work.
>
> mmasters at austin $ make
> Scanning dependencies of target Irrlicht
> [  0%] Building CXX object
> OpenNERO/Irrlicht/CMakeFiles/Irrlicht.dir/COpenGLExtensionHandler.o
> Linking CXX shared library ../../build/libIrrlicht.dylib
> [ 41%] Built target Irrlicht
> [ 56%] Built target RakNet
> [ 57%] Built target tinyxml
> [ 79%] Built target ode
> Linking CXX executable ../build/OpenNERO.app/Contents/MacOS/OpenNERO
> added @executable_path/../Libraries/libIrrlicht.dylib
> added @executable_path/../Libraries/libpng12.0.dylib
> added @executable_path/../Libraries/libjpeg.62.dylib
> added @executable_path/../Libraries/libboost_python-mt-1_35.dylib
> added @executable_path/../Libraries/libboost_filesystem-mt-1_35.dylib
> added @executable_path/../Libraries/libboost_system-mt-1_35.dylib
> added @executable_path/../Libraries/libboost_serialization- 
> mt-1_35.dylib
> added @executable_path/../Libraries/libboost_date_time-mt-1_35.dylib
> [100%] Built target OpenNERO
>
> This was the output from one file getting changed, namely
> COpenGLExtensionHandler.cpp. Can someone explain to me how I can use
> this information to get cpack working?
>
> Also, I'm looking to get ctest working later on. Will this information
> help me accomplish this task also?
>
>
> -Mike
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>




More information about the CMake mailing list