2009-10-28 20:35:53 +03:00
|
|
|
set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
|
2009-10-29 16:26:17 +03:00
|
|
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".a" ".so" ".sl" ".dylib" ".dll.a")
|
2009-10-28 20:35:53 +03:00
|
|
|
|
|
|
|
find_library(TESTC1_LIB
|
|
|
|
NAMES testc1 testc1_test_debug_postfix
|
|
|
|
PATHS ${top}/archive
|
|
|
|
NO_DEFAULT_PATH)
|
|
|
|
|
|
|
|
find_library(TESTC2_LIB
|
|
|
|
NAMES testc2 testc2_test_debug_postfix
|
|
|
|
PATHS ${top}/archive ${top}/library
|
|
|
|
NO_DEFAULT_PATH)
|
|
|
|
|
|
|
|
find_program(CONLY_EXE
|
|
|
|
NAMES COnly
|
|
|
|
PATHS ${top}/runtime
|
|
|
|
NO_DEFAULT_PATH)
|
|
|
|
|
2014-12-27 07:19:14 +03:00
|
|
|
file(RELATIVE_PATH TESTC1_LIB_FILE "${top}" "${TESTC1_LIB}")
|
|
|
|
file(RELATIVE_PATH TESTC2_LIB_FILE "${top}" "${TESTC2_LIB}")
|
|
|
|
file(RELATIVE_PATH CONLY_EXE_FILE "${top}" "${CONLY_EXE}")
|
|
|
|
|
2009-10-28 20:35:53 +03:00
|
|
|
file(WRITE ${top}/OutDir.h "/* Generated by ${CMAKE_CURRENT_LIST_FILE} */
|
|
|
|
#ifndef OutDir_h
|
|
|
|
#define OutDir_h
|
|
|
|
|
2014-12-27 07:19:14 +03:00
|
|
|
#define TESTC1_LIB \"${TESTC1_LIB_FILE}\"
|
|
|
|
#define TESTC2_LIB \"${TESTC2_LIB_FILE}\"
|
|
|
|
#define CONLY_EXE \"${CONLY_EXE_FILE}\"
|
2009-10-28 20:35:53 +03:00
|
|
|
|
|
|
|
#endif
|
|
|
|
")
|