0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-28 01:04:41 +08:00

custom core library name (for cross-platform build, like easy_profiler_eabihf), ex: "cmake -DLIB_NAME=easy_profiler_x64 ../easy_profiler_core"

This commit is contained in:
Sergey Grivskiy 2016-12-08 14:22:14 +03:00
parent 4db9c82729
commit 63e036f11a

View File

@ -1,5 +1,9 @@
project(easy_profiler) project(easy_profiler)
IF (NOT DEFINED LIB_NAME)
SET(LIB_NAME ${PROJECT_NAME})
ENDIF()
set(CPP_FILES set(CPP_FILES
block.cpp block.cpp
profile_manager.cpp profile_manager.cpp
@ -85,10 +89,10 @@ if(WIN32)
) )
endif(WIN32) endif(WIN32)
add_library(${PROJECT_NAME} SHARED ${SOURCES} resources.rc) add_library(${LIB_NAME} SHARED ${SOURCES} resources.rc)
if(UNIX) if(UNIX)
set(PLATFORM_LIBS pthread) set(PLATFORM_LIBS pthread)
endif(UNIX) endif(UNIX)
target_link_libraries(${PROJECT_NAME} ${PLATFORM_LIBS}) target_link_libraries(${LIB_NAME} ${PLATFORM_LIBS})