diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-10-02 12:53:29 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-10-02 12:53:29 (GMT) |
commit | 8a2cbf2c289b46e2f3458d895f021ea79ac04d37 (patch) | |
tree | 542273f1f5be36ee21826013699c8d6b7be37055 /src/boost.mk | |
parent | 4cafbd6bed322ea79867c8f923af6ff830d1b7fb (diff) | |
download | mxe-8a2cbf2c289b46e2f3458d895f021ea79ac04d37.zip mxe-8a2cbf2c289b46e2f3458d895f021ea79ac04d37.tar.gz mxe-8a2cbf2c289b46e2f3458d895f021ea79ac04d37.tar.bz2 |
boost: add cmake test
Diffstat (limited to 'src/boost.mk')
-rw-r--r-- | src/boost.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/boost.mk b/src/boost.mk index 0d48c8b..c6f72bc 100644 --- a/src/boost.mk +++ b/src/boost.mk @@ -71,4 +71,17 @@ define $(PKG)_BUILD -lboost_thread_win32-mt \ -lboost_system-mt \ -lboost_chrono-mt + + # test cmake + mkdir '$(1).test-cmake' + (echo 'cmake_minimum_required(VERSION 2.8.11)'; \ + echo 'project(test-$(PKG)-cmake)'; \ + echo 'find_package(Boost COMPONENTS chrono serialization system thread REQUIRED)'; \ + echo 'add_executable(test-$(PKG)-cmake $(PREFIX)/../src/$(PKG)-test.cpp)'; \ + echo 'target_link_libraries(test-$(PKG)-cmake $${Boost_LIBRARIES})'; \ + echo 'install(TARGETS test-$(PKG)-cmake DESTINATION bin)'; \ + ) > '$(1).test-cmake/CMakeLists.txt' + + cd '$(1).test-cmake' && '$(TARGET)-cmake' . + $(MAKE) -C '$(1).test-cmake' -j 1 install endef |