Fixed CMake file
This commit is contained in:
parent
0274d6c822
commit
c3287eb602
@ -4,11 +4,9 @@ IF (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
ADD_DEFINITIONS(-DLTC_NO_ROLC)
|
ADD_DEFINITIONS(-DLTC_NO_ROLC)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
IF (WIN32)
|
ADD_DEFINITIONS(-DLTC_NO_PROTOTYPES)
|
||||||
ADD_DEFINITIONS(-DLTC_NO_PROTOTYPES)
|
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
|
||||||
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
|
ADD_DEFINITIONS(-DLTC_SOURCE)
|
||||||
ADD_DEFINITIONS(-DLTC_SOURCE)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/src/headers)
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/src/headers)
|
||||||
|
|
||||||
@ -52,12 +50,6 @@ elseif ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xIntel")
|
|||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (MSVC_LIKE_COMPILER)
|
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /FI tomcrypt.h")
|
|
||||||
else ()
|
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -include tomcrypt.h -fPIC")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
SET_SOURCE_FILES_PROPERTIES(ALL_HEADER_FILES PROPERTIES HEADER_FILE_ONLY TRUE)
|
SET_SOURCE_FILES_PROPERTIES(ALL_HEADER_FILES PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||||
LIST(APPEND ALL_SOURCE_FILES ${ALL_HEADER_FILES})
|
LIST(APPEND ALL_SOURCE_FILES ${ALL_HEADER_FILES})
|
||||||
|
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
[[ -z "${tommath_include}" ]] && tommath_include="../tommath/"
|
[[ -z "${tommath_include}" ]] && tommath_include="../tommath/"
|
||||||
|
|
||||||
make -f makefile clean
|
make -f makefile clean
|
||||||
CFLAGS="-fPIC -DUSE_LTM -DLTM_DESC -I${tommath_include}" make -f makefile EXTRALIBS="${tommath_library}"
|
make -f makefile CFLAGS="-fPIC -DUSE_LTM -DLTM_DESC -I${tommath_include}" EXTRALIBS="${tommath_library}" VERBOSE=1 ${CMAKE_MAKE_OPTIONS}
|
||||||
make PREFIX=./out/${build_os_type}_${build_os_arch}/ install
|
make PREFIX=./out/${build_os_type}_${build_os_arch}/ install
|
||||||
|
Loading…
Reference in New Issue
Block a user