find_library(COCOA_LIBRARY Cocoa)
endif()
+# Somehow this only works if included before searching for Boost...
+include(BoostTestTargets)
+
find_package(Boost REQUIRED)
set (BOOST_CXX_FLAGS "-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION")
message(STATUS "Sound support: ENABLED")
endif(ENABLE_SOUND)
- find_package(OpenSceneGraph 3.2.0 REQUIRED osgText osgSim osgDB osgParticle osgGA osgUtil)
+ find_package(OpenSceneGraph 3.2.0 REQUIRED osgText osgSim osgDB osgParticle osgGA osgViewer osgUtil)
endif(SIMGEAR_HEADLESS)
find_package(ZLIB REQUIRED)
# isnan might not be real symbol, so can't check using function_exists
check_cxx_source_compiles(
"#include <cmath>
- void f() { isnan(0.0);} "
+ int main() { return isnan(0.0);} "
HAVE_ISNAN)
check_cxx_source_compiles(
"#include <cmath>
- void f() { std::isnan(0.0);} "
+ int main() { return std::isnan(0.0);} "
HAVE_STD_ISNAN)
if(CMAKE_COMPILER_IS_GNUCXX)
install (FILES ${PROJECT_BINARY_DIR}/simgear/simgear_config.h DESTINATION include/simgear/)
+include_directories(3rdparty/utf8/source)
+
add_subdirectory(3rdparty)
add_subdirectory(simgear)