-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for building with cmake
- Loading branch information
Showing
7 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.idea | ||
*Qt_5_9_0* | ||
*Qt_5_9_0* | ||
cmake-build-debug | ||
cmake-build-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
cmake_minimum_required(VERSION 2.8.11) | ||
|
||
project(cracker) | ||
|
||
# Find includes in corresponding build directories | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
# Instruct CMake to run moc automatically when needed. | ||
set(CMAKE_AUTOMOC ON) | ||
|
||
IF (WIN32) | ||
# Set the path to your qt setup here | ||
set (CMAKE_PREFIX_PATH "C:/Qt/5.9/mingw53_32/") | ||
ENDIF() | ||
|
||
# Find the QtCore library | ||
find_package(Qt5Core) | ||
get_target_property(QtCore_location Qt5::Core LOCATION) | ||
|
||
# Tell CMake to create the helloworld executable | ||
add_executable(cracker | ||
cracker/main.cpp | ||
cracker/keyspacethread.cpp | ||
cracker/runthread.cpp | ||
|
||
cracker/keyspacethread.h | ||
cracker/runthread.h) | ||
|
||
# Use the Widgets module from Qt 5. | ||
target_link_libraries(cracker Qt5::Core) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters